<template>
  <div class="q-pa-md">
    <t-layout
      view="lHh Lpr lFf"
      container
      style="height: 400px"
      class="shadow-2 rounded-borders"
    >
      <t-header elevated>
        <t-toolbar>
          <t-avatar>
            <img src="https://cdn.quasar.dev/logo-v2/svg/logo-mono-white.svg" />
          </t-avatar>
          <t-toolbar-title> <strong>Quasar</strong> Framework </t-toolbar-title>
        </t-toolbar>
      </t-header>

      <t-page-container>
        <t-page padding>
          <p v-for="n in 15" :key="n">
            Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit nihil
            praesentium molestias a adipisci, dolore vitae odit, quidem
            consequatur optio voluptates asperiores pariatur eos numquam rerum
            delectus commodi perferendis voluptate?
          </p>

          <!-- place QPageScroller at end of page -->
          <t-page-scroller
            expand
            position="top"
            :scroll-offset="150"
            :offset="[0, 0]"
          >
            <div
              class="col cursor-pointer q-pa-sm bg-accent text-white text-center"
            >
              Scroll back up...
            </div>
          </t-page-scroller>
        </t-page>
      </t-page-container>
    </t-layout>
  </div>
</template>
